home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / taz.swf / scripts / DefineSprite_46 / frame_7 / DoAction.as
Text File  |  2012-01-07  |  421b  |  21 lines

  1. tl = getProperty("../taz", _X) - "30";
  2. tr = getProperty("../taz", _X) + "30";
  3. tt = getProperty("../taz", _Y) - "60";
  4. tb = getProperty("../taz", _Y) - "30";
  5. cocox = _X;
  6. cocoy = _Y + "10";
  7. if(tl < cocox and cocox < tr and tt < cocoy and cocoy < tb)
  8. {
  9.    tellTarget("../taz")
  10.    {
  11.       gotoAndStop("eat");
  12.       play();
  13.    }
  14.    gotoAndPlay(28);
  15. }
  16. if("290" < _Y)
  17. {
  18.    gotoAndPlay(10);
  19. }
  20. _Y = _Y + speed;
  21.